package com.hqyj.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.javaSpringBoot.modules.account.entity.User;
import com.hqyj.javaSpringBoot.modules.account.entity.UserSearchBean;
import com.hqyj.javaSpringBoot.modules.common.entiy.ResultEntity;
import com.hqyj.javaSpringBoot.modules.common.entiy.SearchBean;

import java.util.List;

public interface UserService {
    ResultEntity<User> insertUser(User user);

    ResultEntity<User> deleteUser(int id);

    ResultEntity<User> updateUser(User user);

    User getUserByUserId(int id);

    User getUserByUserName(String userName);

    ResultEntity<User> getUserLogin(User user);

    PageInfo<User> getUserBySearch(UserSearchBean userSearchBean);

    List<User> getUsers();

    ResultEntity<User> updateUserPassword(User user,String oldPassWord);

    void logout();
}
